<?php
require_once "checklogin.php";
require_once "../lib/MySQLDB.class.php";
$db=MySQLDB::getInstance();
$data["userID"]=$_GET["userID"];
$sql="delete from admininfo where userID=?";
$res=$db->query($sql,'i',$data);
if($res){
    layerAlert("管理员删除成功！",1,"adminList.php");
}else{
    layerAlert("管理员删除失败！",5,"adminList.php");
}